package test;

public abstract class Role {
    private String name;
    private int age;
    private boolean sex;
    public Role(){}
    public Role(String name, int age, boolean sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
    public abstract void play();
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void setSex(boolean sex) {
        this.sex = sex;
    }
    public boolean getSex(){
        return sex;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public int getAge() {
        return age;
    }
}
